cmake_minimum_required (VERSION 2.6) 
PROJECT (GobeeOS)

SET(ARCH x86)
SET(MACH pc)

SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output CACHE PATH "Path for libraries")
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output CACHE PATH "Path for libraries")
SET(BUILD_DOCUMENTATION ON)

SET(DEBUG ON)

INCLUDE(${PROJECT_SOURCE_DIR}/cmake/TARGET.cmake)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DEBUG_CFLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEBUG_CFLAGS}")

INCLUDE(${PROJECT_SOURCE_DIR}/INCLUDES.cmk)

INCLUDE ( ExternalProject )
INCLUDE ( Documentation )

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

add_subdirectory( sys/kernel )
add_subdirectory( boot/${ARCH} )

INCLUDE(CTest)

ENABLE_TESTING()

